<?php
/**
 * Creater: 李青林
 * Date Time : 2018/8/14 11:11
 */

namespace App\Http\Models;


class IntegralLog extends BaseModel
{

    protected $table = 'users_integral_log';

    /**
     * 获取一个用户的所有扣除积分日志
     * @param $userId
     */
    public function getUserLog($userId)
    {
        return self::where('user_id',$userId)->find();
    }
}